-
Notifications
You must be signed in to change notification settings - Fork 107
perf: list contains scalar scalar #5792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
7698e3c to
7155099
Compare
Signed-off-by: Alexander Droste <alexander.droste@protonmail.com>
7155099 to
e30d39c
Compare
| list: &ListViewScalar, | ||
| needle: &vortex_vector::Scalar, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this method be in vortex-compute?
Codecov Report❌ Patch coverage is
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| }) | ||
| } else { | ||
| // Fallback for non-primitive vectors | ||
| (0..elements.len()).any(|i| needle == &elements.scalar_at(i)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use a array compare here with the elements and a constant array?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't need to special case anything
No description provided.